package org.lc.stk.model.question.impl.judge;

import org.hibernate.annotations.Comment;
import org.lc.stk.model.question.Question;

import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;

/**
 * 判断题
 */
@Entity
@Table(name = "judge_question")
@Comment("判断题")
public class JudgeQuestion extends Question {

    @OneToOne
    @Comment("题干")
    private JudgeQuestionStem stem;

    @OneToOne
    @Comment("答案")
    private JudgeQuestionAnswer answer;

    public JudgeQuestionStem getStem() {
        return stem;
    }

    public void setStem(JudgeQuestionStem stem) {
        this.stem = stem;
    }

    public JudgeQuestionAnswer getAnswer() {
        return answer;
    }

    public void setAnswer(JudgeQuestionAnswer answer) {
        this.answer = answer;
    }

}
